package 二叉树;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        TreeNode treeNode1 = new TreeNode(3);
        TreeNode treeNode2 = new TreeNode(9);
        TreeNode treeNode3 = new TreeNode(20);
        TreeNode treeNode4 = new TreeNode(15);
        TreeNode treeNode5 = new TreeNode(7);
        treeNode1.left =  treeNode2;
        treeNode1.right =  treeNode3;
        treeNode3.left =  treeNode4;
        treeNode3.right =  treeNode5;

       _102_二叉树的层序遍历 level = new _102_二叉树的层序遍历();
        List<List<Integer>> lists = level.levelOrder(treeNode1);
        System.out.println(lists);

    }
}
